import { configureStore } from '@reduxjs/toolkit'
import counterSlice from '@/slice/counterSlice'
import configSlice from '@/slice/configSlice'
import opDrawerSlice from '@/slice/opDrawerSlice'


const store = configureStore({
    reducer: {
      counter: counterSlice,
      config: configSlice,
      opDrawer: opDrawerSlice
    },
    middleware: (getDefaultMiddleware) => getDefaultMiddleware({
      serializableCheck: false
    })
  })

export default store

export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
